package cat.service.iml;
import java.util.List;
				import javax.annotation.Resource;
				import org.springframework.stereotype.Service;
				import cat.entity.Comment;
				import cat.mapper.CommentMapper;
				import cat.service.CommentService;
				
				@Service
				public class CommentServiceImpl implements CommentService {
					
					@Resource
					CommentMapper commentMapper;
				
					public List<Comment> listRecentComment(Integer n) {
						return commentMapper.listRecentComment(n);
						
					}
					public void deleteComment(Integer CommentId) {
				        commentMapper.deleteComment(CommentId);
				    }
				}